// pages/notify/index.ts
Page({
  data: {
    saveAnnouncement: {}
  },
  onLoad({ id }) {
    this.getAnnouncement(id)
    // console.log(this.saveAnnouncement);
  },
  async getAnnouncement(id) {
    const res = await wx.http({
      url: `/announcement/${id}`
    })
    // console.log(res);
    this.setData({
      saveAnnouncement: res.data
    })
  }
})